import {$post, $postParms} from "@/utils/require"

const enum experimentApi {
    list = '/teacher/experimentApplication/list',
    add = '/teacher/experimentApplication/add',
    edit = '/teacher/experimentApplication/edit',
    delete = '/teacher/experimentApplication/delete',
    deleteList = '/teacher/experimentApplication/deleteList'
}

export const $getExperimentAddList = async (body?: any, params?: any) => {
    return await $postParms(experimentApi.list, body, params);
}

export const $addExperiment = async (params: any) => {
    return await $post(experimentApi.add, params);
}

export const $editExperiment = async (params: any) => {
    return await $post(experimentApi.edit, params);
}

export const $deleteExperiment = async (params:any)=>{
    return await $post(experimentApi.delete, params);
}

export const $deleteListExperiment = async (params:any)=>{
    return await $post(experimentApi.deleteList, params);
}
